<?php
declare (strict_types = 1);

namespace app\common\validate;

use think\Validate;
class H5Server extends Validate
{
    protected $rule = ['sid' => 'require|number','name' => 'require',
    ];

    protected $message = ['sid.require' => '服务器ID为必填项','sid.number' => '服务器ID需为数字','name.require' => '服务器名为必填项',
    ];

    /**
     * 添加
     */
    public function sceneAdd()
    {
        return $this->only(['sid','name',]);
    }

    /**
     * 编辑
     */
    public function sceneEdit()
    {
        return $this->only(['sid','name',]);
    }
}
